package com.finesys.backend.common.utils;

import java.io.Serializable;

/**
 * @author lehoon
 * <p>Description: 接口返回实体</p>
 * 2020年10月02日
 */
public class JsonResult implements Serializable{

	private static final long serialVersionUID = -5764583331390963977L;

	/**
	 * 操作返回码
	 */
	private Integer code;

	/**
	 * 返回信息
	 */
	private String message = "";

	/**
	 * 附加数据
	 */
	private Object data;


	public String getMessage() {
		return message;
	}

	public JsonResult() {
		super();
	}

	public void setMessage(String message) {
		this.message = message;
	}


	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public JsonResult(Integer code, String message, Object data) {
		super();
		this.code = code;
		this.message = message;
		this.data = data;
	}

	public JsonResult(Integer code, String message) {
		super();
		this.code = code;
		this.message = message;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}
}
